package ysq.xyg.host.model.po;

import lombok.NoArgsConstructor;

import lombok.Data;
import ysq.xyg.base.util.BaseConstant;
import ysq.xyg.base.util.BaseUtil;
import ysq.xyg.sys.model.po.SysUser;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 房产-专车看房实体类
 *
 * @author congcong tao
 * @date 2019-12-11 14:49:36
 */
@Data
@NoArgsConstructor
@Table(name = "xyg_host_showings")
public class HostShowings implements Serializable{

	/**
     * 主键
     */ 
	@Id
	private String id;

	/**
     * 应用主键
     */ 
	@Column(name = "account_id")
	private String accountId;

	/**
     * 会员主键
     */ 
	@Column(name = "member_id")
	private String memberId;

	/**
     * 手机号
     */ 
	@Column(name = "phone")
	private String phone;

	/**
     * 姓名
     */ 
	@Column(name = "name")
	private String name;

	/**
     * 性别
     */ 
	@Column(name = "sex")
	private String sex;

	/**
     * 楼盘信息
     */ 
	@Column(name = "item")
	private String item;

	/**
     * 状态1=审核中2=审核成功3=审核失败
     */ 
	@Column(name = "status")
	private String status;

	/**
     * 看房时间
     */ 
	@Column(name = "use_time")
	private Date useTime;

	/**
     * 删除状态1、未删除2、已删除
     */ 
	@Column(name = "remove_tag")
	private String removeTag;

	/**
     * 创建时间
     */ 
	@Column(name = "create_time")
	private Date createTime;

	/**
     * 更新时间
     */ 
	@Column(name = "update_time")
	private Date updateTime;


	public HostShowings(SysUser sysUser) {
		this.id= BaseUtil.uId();
		this.removeTag= BaseConstant.BASE_REMOVE_TAG_NORMAL;
		this.createTime = new Date();
		this.updateTime = new Date();
	}
}